added -posix check for NeXTStep
authorManish Singh <yosh@src.gnome.org>
Wed, 9 Sep 1998 09:51:44 +0000 (09:51 +0000)
committerManish Singh <yosh@src.gnome.org>
Wed, 9 Sep 1998 09:51:44 +0000 (09:51 +0000)
* configure.in: added -posix check for NeXTStep

* gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
a unique buffer for each thread.

* docs/gtk-config.1: clarified copyright

-Yosh

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
configure.in
docs/gtk-config.1
gtk/testthreads.c
tests/testthreads.c

index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index 4011d028f65d0309623e447e8f61b3b418def007..f4c478ef5bb39c8ee123b907162bede4777d6017 100644 (file)
@@ -1,3 +1,12 @@
+Wed Sep  9 02:48:44 PDT 1998 Manish Singh <yosh@gimp.org>
+
+       * configure.in: added -posix check for NeXTStep
+
+       * gtk/testthreads.c: applied part of gtk-joke-980907-0 to use
+       a unique buffer for each thread.
+
+       * docs/gtk-config.1: clarified copyright
+
 Tue Sep  8 05:19:51 1998  Tim Janik  <timj@gtk.org>
 
        * gdk/gdk.c (gdk_init): use g_atexit() instead of ATEXIT.
index bbe82b855ee9244f2b9f88b8d493267a31727ceb..1f3b62ab41e27e478e2715571f03a4a0bed208f5 100644 (file)
@@ -127,6 +127,18 @@ AC_TRY_RUN([#include <math.h>
 )
 LIBS=$gtk_save_LIBS
 
+dnl NeXTStep cc seems to need this
+AC_MSG_CHECKING([for extra flags for POSIX compliance])
+AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
+  AC_MSG_RESULT(none needed),
+  gtk_save_CFLAGS=$CFLAGS
+  CFLAGS="$CFLAGS -posix"
+  AC_TRY_COMPILE([#include <dirent.h>], [DIR *dir;],
+    AC_MSG_RESULT(-posix),
+    AC_MSG_RESULT()
+    CFLAGS=$gtk_save_CFLAGS
+    AC_MSG_WARN([Could not determine POSIX flag. (-posix didn't work.)])))
+
 if test "x$enable_xim" = "xyes"; then
   CFLAGS="$CFLAGS -DUSE_XIM"
 fi
index 2d50757b454754a8759310a9766c18aa829a6e3a..41a0a0cdbc2c7566be0efad8b43f6aa923f71d55 100644 (file)
@@ -40,7 +40,7 @@ and \-\-libs options.  This option must be specified before any
 .BR gimp (1),
 .BR gimptool (1)
 .SH COPYRIGHT
-Copyright \(co  1995 Spencer Kimball and Peter Mattis
+Copyright \(co  1998 Owen Taylor
 
 Permission to use, copy, modify, and distribute this software and its
 documentation for any purpose and without fee is hereby granted,
index 6ce38f369ca380101e78847101ec064e7b5ebcad..4d02a06435378eb628149d48c6b8e74064b281f7 100644 (file)
@@ -127,11 +127,11 @@ main (int argc, char **argv)
 
   for (i=0; i<5; i++)
     {
-      char buffer[10];
+      char buffer[5][10];
       pthread_t thread;
       
-      sprintf(buffer, "Thread %i", i);
-      if (pthread_create (&thread, NULL, counter, buffer))
+      sprintf(buffer[i], "Thread %i", i);
+      if (pthread_create (&thread, NULL, counter, buffer[i]))
        {
          fprintf(stderr, "Couldn't create thread\n");
          exit(1);
index 6ce38f369ca380101e78847101ec064e7b5ebcad..4d02a06435378eb628149d48c6b8e74064b281f7 100644 (file)
@@ -127,11 +127,11 @@ main (int argc, char **argv)
 
   for (i=0; i<5; i++)
     {
-      char buffer[10];
+      char buffer[5][10];
       pthread_t thread;
       
-      sprintf(buffer, "Thread %i", i);
-      if (pthread_create (&thread, NULL, counter, buffer))
+      sprintf(buffer[i], "Thread %i", i);
+      if (pthread_create (&thread, NULL, counter, buffer[i]))
        {
          fprintf(stderr, "Couldn't create thread\n");
          exit(1);